package com.sm.scorpio.ui.activity.chat;

import com.scorpio.baselibrary.adapter.BasicMultiItemQuickAdapter;
import com.scorpio.baselibrary.adapter.BasicViewHolder;
import com.sm.scorpio.R;

import java.util.List;

/**
 * created by zhud on 2019/7/18
 */
public class ChatAdapter extends BasicMultiItemQuickAdapter<ChatBean, BasicViewHolder> {

    public ChatAdapter(List<ChatBean> data) {
        super(data);
        addItemType(ChatBean.TYPE_LEFT_MESSAGE, R.layout.item_chat_left_message);
        addItemType(ChatBean.TYPE_RIGHT_MESSAGE, R.layout.item_chat_right_message);
    }

    @Override
    protected void convert(BasicViewHolder helper, ChatBean item) {
        if (item.getItemType() == ChatBean.TYPE_LEFT_MESSAGE) {

        } else if (item.getItemType() == ChatBean.TYPE_RIGHT_MESSAGE) {

        }
    }
}
